//
//  PlayMusicHelp.h
//  MusicTextOne
//
//  Created by lanou3g on 15/11/17.
//  Copyright (c) 2015年 haiTeng. All rights reserved.
//

#import <Foundation/Foundation.h>

#define CY_sharePlayeMusicHelp [PlayMusicHelp share]



@interface PlayMusicHelp : NSObject

/// 单例
+ (PlayMusicHelp *)share;

- (void)playMusicMp3Url:(NSString *)mp3Url;  //传入音乐地址

- (void)play; //播放

- (void)pause;  //暂停

- (void)seekToTime:(CGFloat)time;   //某一时刻开始播放




@property (nonatomic, assign) CGFloat sumtime; //当前播放音乐的总时长

@property (nonatomic, assign) BOOL isPlay; //判断是都在播放

@property (nonatomic, assign) CGFloat volume;  //音量

@property (nonatomic, copy) void(^playToEndBlock)();//播放完成回调

@property (nonatomic, copy) void(^playTimerBlock)(CGFloat timer); ///0.1秒，block回调

@property (nonatomic, assign) NSInteger index; //记录当前播放角标



@end
